<div class="col_02" id="rightside">
	<div class="col_02_01" id="sysContent_box">
		<div class="main-wrap">
			<div class="m-t">
				<h2>My Contacts</h2>
			</div>
		<div class="m-c">
	<form action=""  method="GET" name="search" >
		<table width="100%" border="0" cellpadding="0" cellspacing="5"  class="table_style">
			<tr>
				<td colspan="2">Name:<br /><input  type="text" name="name"  maxlength="200" value="{$s.name}" style="width:360px">
				</td>
				<td>Group:
					<select name="groups">
						{html_options selected=$s.groups options=$groups}
					</select>
				</td>
			</tr>
			<tr>
				<td>City:</td>
				<td>State:</td>
				<td>Country:</td>
			</tr>
			<tr>
				<td>
					<input  type="text" name="city" maxlength="200" value="{$s.city}" style="width:175px">
				</td>
				<td>
					<select name="state" >
						{html_options selected=$s.state options=$state}
					</select>
				</td>
				<td>
					<select name="country">
						{html_options selected=$s.country options=$country}
					</select>
				</td>
			</tr>
			<tr>
				<td>Speciality:</td>
				<td>Industry:</td>
				<td>Sort Results By:</td>
			</tr>
			<tr>
				<td>
					<select name="speciality" size="">
						{html_options selected=$s.speciality options=$jobfunction}
					</select>
				</td>
				<td>
					<select name="industry" size="">
						{html_options selected=$s.industry options=$industry}
					</select>
				</td>
				<td>
					<select name="orderby" size="">
						{html_options selected=$s.orderby options=$rec_mycontacts}
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="3" align="center">
					<input name="action" value="search" type="hidden">
					<input class="bginput button-secondary" accesskey="y" type="submit" name="submit" value=" Search ">
					<input class="bginput button-secondary" accesskey="r" type="button" name="Input" value=" Clear "  onclick="turnto('mycontacts.php')">
				</td>
			</tr>
		</table>
	</form>
	</div>
</div>
</div>
{literal}
<script type="text/javascript">
checked=false;
function checkedAll() {
	var aa= document.getElementById('fm1');
	 if (checked == false)
	  {
	   checked = true
	  }
	 else
	  {
	  checked = false
	  }
	for (var i =0; i < aa.elements.length; i++) 
	{
	 aa.elements[i].checked = checked;
	}
}
</script>
{/literal}
<div class="col_02_02" id="side_box">
	<div class="signIn">
		<h2 class="m_t m_t_gray">Member  Center</h2>
		<div class="m_c">
			<div class="mySigned" id="J_sign_form">
				<div id="loginboxx">
					<p class="info">Welcome, <span class="u_name">{$uname}</span>!</p>
					<p class="lnk_panel"><a href="settings.php" class="lnk_arrow">My Account</a></p>
					
					<p class="lnk_panel"><a href="#" onclick="return ajax_out()" class="lnk_arrow">Sign Out</a><div id="loadp"></div></p>
				</div>
			</div>
		</div>
		<div class="m_f"></div>
	</div>
	{if $isTr}
	<div class="panel_box mt_10">
		<h2 class="m_t m_t_gray">Join a Chat </h2>
		<div class="m_c">
			<div>
				<ul>
					<li><a href="findchats.php">Skype Chat</a></li>
					<li><a href="findwebinars.php">Webinars</a></li>
				</ul>
			</div>
			<p class="info"><a href="#"></a></p>							
		</div>
		<div class="m_f"></div>
	</div>
	{/if}
</div>
<div class="clearfix"></div>
<div class="module_box mt_10" id="findResults">
	<div class="m_t"><h2>Search Result:</h2></div>
	<div class="m_c">
	{if $err!=''}
	<p class="title1" style="color:red;font-size:12px">{$err}</p>
	{/if}

	{$page}
	<form method="POST" id="fm1" action="mycontacts.php?action=delContact" onsubmit="javascript:return confirm('Sure you want to delete?');">
	<table width="100%" border="0" cellpadding="4" cellspacing="1" class="tableGrey">
		<tr>
			<th width="5%"></th>
			<th width="20%">Name</th>
			<th>Email</th>
			<th width="20%">Speciality</th>
			<th>Industry</th>
			<th width="3%">Action</th>
			<th width="12%"><input type="checkbox" name="" onClick="checkedAll()"> <input type="submit" value="Delete" class="button-secondary"></th>
		</tr>
		{section name=custom loop=$contactlist}
		<tr class="hotline {cycle values="odd,even"}">
			<td>
			{if $contactlist[custom].arefriends == 1}
				<a href="###" onmouseover="Tip('Connected to you.', WIDTH, 200,OFFSETY,20, SHADOW, true)"><img src="images/addyes.gif" border="0" align="absmiddle" /></a>
			{/if}
			</td>
			<td><a href="postcontact.php?action=view&editId={$contactlist[custom].myc_id}" target="_blank">{$contactlist[custom].myc_firstname} {$contactlist[custom].myc_lastname}</a></td>
			<td>{$contactlist[custom].myc_email}</td>
			<td>{$contactlist[custom].speciality}</td>
			<td>{$contactlist[custom].industry}</td>
			<td><a href="postcontact.php?editId={$contactlist[custom].myc_id}">Edit</a></td>
			<td><input type="checkbox" name="delId[]" value="{$contactlist[custom].myc_id}"></td>
		</tr>
		{sectionelse}
		<tr class="hotline {cycle values="odd,even"}">
			<td colspan="8"><font color=red>No data was found for selected field(s).<br>
				Try again.  Please note 'Select All' will search for all available data in that field.</font></td>
		</tr>
		{/section}
	</table>
{$page}
	</form>
</div>
</div>
</div>
				</div>
			</div>
		</div>
	</div>
</section>